package yogiro.to;

public class CommentTO {
	private int commentNo;
	private String commentGrade;
	private String commentContent;
	private String commentWritedate;
	private int commentRefamily;
	private int commentRestep;
	private int commentRelevel;
	private String memberId;
	private int tourNo;
	
	
	public CommentTO(int commentNo, String commentGrade, String commentContent,
			String commentWritedate, int commentRefamily, int commentRestep,
			int commentRelevel, String memberId, int tourNo) {
		super();
		this.commentNo = commentNo;
		this.commentGrade = commentGrade;
		this.commentContent = commentContent;
		this.commentWritedate = commentWritedate;
		this.commentRefamily = commentRefamily;
		this.commentRestep = commentRestep;
		this.commentRelevel = commentRelevel;
		this.memberId = memberId;
		this.tourNo = tourNo;
	}
	public CommentTO() {
		super();
	}
	public int getCommentNo() {
		return commentNo;
	}
	public void setCommentNo(int commentNo) {
		this.commentNo = commentNo;
	}
	public String getCommentGrade() {
		return commentGrade;
	}
	public void setCommentGrade(String commentGrade) {
		this.commentGrade = commentGrade;
	}
	public String getCommentContent() {
		return commentContent;
	}
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	public String getCommentWritedate() {
		return commentWritedate;
	}
	public void setCommentWritedate(String commentWritedate) {
		this.commentWritedate = commentWritedate;
	}
	public int getCommentRefamily() {
		return commentRefamily;
	}
	public void setCommentRefamily(int commentRefamily) {
		this.commentRefamily = commentRefamily;
	}
	public int getCommentRestep() {
		return commentRestep;
	}
	public void setCommentRestep(int commentRestep) {
		this.commentRestep = commentRestep;
	}
	public int getCommentRelevel() {
		return commentRelevel;
	}
	public void setCommentRelevel(int commentRelevel) {
		this.commentRelevel = commentRelevel;
	}
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public int getTourNo() {
		return tourNo;
	}
	public void setTourNo(int tourNo) {
		this.tourNo = tourNo;
	}
	@Override
	public String toString() {
		return "CommentTO [commentNo=" + commentNo + ", commentGrade="
				+ commentGrade + ", commentContent=" + commentContent
				+ ", commentWritedate=" + commentWritedate
				+ ", commentRefamily=" + commentRefamily + ", commentRestep="
				+ commentRestep + ", commentRelevel=" + commentRelevel
				+ ", memberId=" + memberId + ", tourNo=" + tourNo
				+ "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((commentContent == null) ? 0 : commentContent.hashCode());
		result = prime * result
				+ ((commentGrade == null) ? 0 : commentGrade.hashCode());
		result = prime * result + commentNo;
		result = prime * result + commentRefamily;
		result = prime * result + commentRelevel;
		result = prime * result + commentRestep;
		result = prime
				* result
				+ ((commentWritedate == null) ? 0 : commentWritedate.hashCode());
		result = prime * result
				+ ((memberId == null) ? 0 : memberId.hashCode());
		result = prime * result + tourNo;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CommentTO other = (CommentTO) obj;
		if (commentContent == null) {
			if (other.commentContent != null)
				return false;
		} else if (!commentContent.equals(other.commentContent))
			return false;
		if (commentGrade == null) {
			if (other.commentGrade != null)
				return false;
		} else if (!commentGrade.equals(other.commentGrade))
			return false;
		if (commentNo != other.commentNo)
			return false;
		if (commentRefamily != other.commentRefamily)
			return false;
		if (commentRelevel != other.commentRelevel)
			return false;
		if (commentRestep != other.commentRestep)
			return false;
		if (commentWritedate == null) {
			if (other.commentWritedate != null)
				return false;
		} else if (!commentWritedate.equals(other.commentWritedate))
			return false;
		if (memberId == null) {
			if (other.memberId != null)
				return false;
		} else if (!memberId.equals(other.memberId))
			return false;
		if (tourNo != other.tourNo)
			return false;
		return true;
	}
	
	
}